import { type RouteRecordRaw } from 'vue-router';
import { MAIN_LAYOUT } from '@/components/constants';

export const routeList: RouteRecordRaw[] = [
  {
    path: '/mixing-process',
    component: MAIN_LAYOUT,
    children: [
      {
        // 这里需要提供一个空的嵌套路径来嵌套路由组件
        path: '',
        name: 'mixing-process',
        component: () => import('@/views/MixingProcessHomeView.vue')
      },
      {
        path: 'anode-mixing',
        name: 'anode-mixing',
        component: () => import('@/views/mixing-machine/AnodeMixingView.vue')
      },
      {
        path: 'cathode-mixing',
        name: 'cathode-mixing',
        component: () => import('@/views/mixing-machine/CathodeMixingView.vue')
      },
      {
        path: 'anode-pulping',
        name: 'anode-pulping',
        component: () => import('@/views/pulping-machine/AnodePulpingMachineView.vue')
      },
      {
        path: 'cathode-pulping',
        name: 'cathode-pulping',
        component: () => import('@/views/pulping-machine/CathodePulpingMachineView.vue')
      }
    ]
  },
  {
    path: '/mixing-process/mixing-pulping',
    name: 'mixing-pulping',
    component: () => import('@/views/MixingPulpingHomeView.vue')
  }
];

export default routeList;
